import {Navigate} from 'react-router-dom'
import Login from '../page/login'
import Zhut from '../page/zhut'
import Home from '../page/zhut/home'
import Classify from '../page/zhut/classify'
import Gwc from '../page/zhut/gwc'
import My from '../page/zhut/my'
import Detail from '../page/detail'
import SearchC from '../page/search'
export default [{
    path:'/',
    element:<Navigate to='/login'/>
},{
    path:'/login',
    element:<Login/>
},
{
    path:'/detail/:id',
    element:<Detail/>
},
{
    path:"/search",
    element:<SearchC/>
},
{
    path:'/zhut',
    element:<Zhut/>,
    children:[{
        path:'/zhut/home',
        element:<Home/>
    },{
        path:'/zhut/classify',
        element:<Classify/>
    },{
        path:'/zhut/gwc',
        element:<Gwc/>
    },{
        path:'/zhut/my',
        element:<My/>
    }]
}]